Socket
Socket
Sign inDemoInstall

lodash.last

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.last

The modern build of lodash’s `_.last` as a module.


Version published
Weekly downloads
245K
decreased by-2.01%
Maintainers
4
Weekly downloads
 
Created

What is lodash.last?

The lodash.last package is a utility library that provides a simple function to retrieve the last element of an array. It is a part of the larger Lodash library, which offers a wide range of utility functions for common programming tasks.

What are lodash.last's main functionalities?

Retrieve the last element of an array

This feature allows you to get the last element of an array. The code sample demonstrates how to use the lodash.last function to retrieve the last element from an array.

const last = require('lodash.last');
const array = [1, 2, 3, 4];
const lastElement = last(array);
console.log(lastElement); // Output: 4

Other packages similar to lodash.last

Keywords

FAQs

Package last updated on 26 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc